package com.jscm;

import com.jscm.openmodule.OpenModuleBtn;
import com.jscm.openprocess.OpenProcessBtn;
import com.jscm.openselect.OpenSelectBtn;
import com.jscm.showAttribute.OpenAttrBtn;
import com.jscm.showHexBool.OpenHexBtn;
import javafx.geometry.Pos;
import javafx.scene.image.Image;
import javafx.scene.layout.*;

/**
 * 菜单工具条布局
 */
public class ToolBar{
    public static HBox hBox = new HBox();
    static {
        init();
    }
    public static void init(){
        hBox.setLayoutX(0);
        hBox.setLayoutY(0);
        hBox.setPrefWidth(500);
        hBox.setPrefHeight(50);
        hBox.setAlignment(Pos.CENTER_LEFT);
        hBox.setStyle("-fx-background-color: #345aa6");
//        hBox.setBackground(new Background(new BackgroundImage(new Image("bgk.jpg"), BackgroundRepeat.NO_REPEAT ,BackgroundRepeat.REPEAT, BackgroundPosition.CENTER, BackgroundSize.DEFAULT)));
        hBox.getChildren().addAll(
                OpenProcessBtn.button,
                OpenModuleBtn.button,
                OpenSelectBtn.button,
                OpenAttrBtn.button,
                OpenHexBtn.button

        );
    }
}
